<extend name="Layout:layout_dialog" />
<block name="body_main">
    <form action="{:U('user_role_save')}" method="post" class="xsui-form">
        <label>分配角色：</label>
        <select name="role_ids" data-url="{:U('Role/get_role_tree_json')}" data-value="{$role_ids}"></select>
        <button type="submit" class="ui-state-default"><i class="fa fa-save"></i>保存</button>
        <button type="reset" class="ui-state-default">重置</button>
        <input type="hidden" name="uid" value="{$uid}"/>
    </form>
</block>
<block name="body_after">
    <script type="text/javascript">
        ajax_combobox({selector: 'select[name="role_ids"]', def_option: '请选择角色'});
    </script>
</block>